package com.cpa.admin.model;

import com.cpa.admin.utils.UUIdGenId;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalTime;
import java.util.Date;

/**
* Created by Mybatis Generator 2018/11/04
 * @author zhao
 */
@Data
@Table(name = "product")
public class ProductDo implements Serializable {
    @Id
    @KeySql(genId = UUIdGenId.class)
    private String id;

    /**产品名称*/
    private String productName;

    /**产品单价*/
    private BigDecimal productAmount;

    /**结算时间*/
    @DateTimeFormat(pattern = "HH:mm:ss")
    private LocalTime settleTime;

    /**总结算量*/
    private Integer settleNumber;

    /**结算总金额*/
    private BigDecimal settleTotal;

    /**备注*/
    private String remark;

    /**创建时间*/
    private Date createTime;

    /**更新时间*/
    private Date updateTime;

    /**删除标记*/
    private Integer deleteFlag;

    /** 创建者*/
    private String createBy;

    private Integer status;

    private static final long serialVersionUID = 1L;
}